home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
util
/
rexx
/
zipscripts.readme
< prev
Wrap
Text File
|
1996-12-07
|
5KB
|
169 lines
Short: Some ARexx and AmigaDOS scripts for use with Zip Disks
Author: deery@mast.queensu.ca
Uploader: deery@mast.queensu.ca
Type: util/rexx
Requires: ZipTool12.lha
ARexx and AmigaDOS Scripts for Zip Disks
I recently bought an Epson Zip drive, and discovered that my SCSI
controller (a Dataflyer 4000SX) will not automatically recognize the
drive. I had to create a mountlist for it. This means (among other
things) that disk changes will not be automatically recognized. The
combination of scripts contained in this archive was my solution to
the problem.
How it works (a brief description):
The ARexx script zip-change.rexx continuously checks the drive to see
if the system thinks that no disk is in the drive. If this is the
case, or if the disk is listed as being a non-dos disk, then
diskchange is called. The drive is checked again, and if there is now
a disk listed in the drive then a startup script on the drive is
called.
What each part actually does:
zipch:
This script just starts zip-change.rexx.
zip-change.rexx:
This script is the main component of the system. It checks
the drive until a disk is inserted, and then executes the file
s:zip-start. The script defaults to a 10 second wait between
checks, but this is easily changed.
zip-start:
This script merely checks to see if zip:setup/startup exists,
and if so, then it executes it.
setup/startup:
This script sets up the current zip disk by adding any
assigns, paths, etc.
setup/zip-path:
This script gets called by shell-startup to add the correct
paths for the current zip disk.
eject:
This script calls zip:setup/path-remove, unmounts the current
disk, and finally uses ziptool to eject it.
setup/path-remove:
This script removes the assigns and paths set up by
setup/startup.
zip-startup.rexx:
This scripts should be called in the user-startup file in case
a disk is already in the drive when the system is booted. It
merely checks to see if a disk is there, and if so it calls
zip-start.
Requirements:
Ziptool V1.2 by Oliver Hitz. Available on Aminet.
Installation:
copy zip-change.rexx s:
copy zip-start s:
copy eject s:
copy zip-startup.rexx s:
copy zipch s:
add the following lines to s:user-startup
rx s:zip-startup.rexx
run >nil: s:zipch
add the following lines to s:shell-startup
if exists t:zip-path
execute t:zip-path
endif
On each zip disk, create a setup directory.
copy path-remove zip:setup
copy startup zip:setup
copy zip-path zip:setup
(The fzip script will format a zip disk with the name Empty, and copy
default versions of the above scripts into a directory name setup on the
zip disk.)
Edit each of the files in zip:setup to correspond to the needed
environment for the disk.
In zip-path add any paths that are needed.
In startup add any assigns, and other commands that are needed to
setup the software on that disk.
In path-remove add the commands necessary to remove the paths, and
assigns, as well as any other shutdown things that are needed.
(See the appropriate files for more info.)
Customization:
The files currently assume that the zip drive is referred to by zip:
If zip0: or something else is used, it will be necessary to modify the
scripts.
Author Contact Info:
Name: Todd Deery
Email: deery@mast.queensu.ca
Address: 5A Scott St.
Kingston, ON
CANADA
K7L 1L3
Disclaimer:
This works for me, and has been for the last week or so. I make no
guarantees that it will work for you. However, if you find a problem
please let me know, and I'll try to work on it.
The Future:
I don't know. Any suggestions are welcome.
Registration:
None. However, I would appreciate an email or something, just so I
know that some people are using it. Also, money, computers, etc.
would not be turned away. :}
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
197 107 45.6% 05-Nov-96 09:52:18 eject
97 76 21.6% 05-Nov-96 09:51:50 fzip
1 1 0.0% 02-Nov-96 11:33:16 +path-add
43 43 0.0% 02-Nov-96 11:33:16 +path-remove
41 41 0.0% 02-Nov-96 11:54:10 +startup
971 310 68.0% 05-Nov-96 09:51:46 zip-change.rexx
64 51 20.3% 05-Nov-96 09:51:46 zip-start
525 256 51.2% 05-Nov-96 09:51:46 zip-startup.rexx
25 25 0.0% 05-Nov-96 09:51:46 zipch
3974 1714 56.8% 05-Nov-96 10:22:28 zipscripts.readme
-------- ------- ----- --------- --------
5938 2624 55.8% 11-Nov-96 12:58:34 10 files